package cn.hftoday.org;

import cn.hftoday.core.*;

/**
 * Database mapper type handler for party
 * @author lane.cn@gmail.com
 *
 */
public class PartyTypeHandler implements TypeHandler {
	
	/**
	 * get result class type
	 * @param discrminator
	 * @return
	 */
	public String getResult(String discriminator) {
		if (discriminator.equals("person")) {
			return "cn.hftoday.org.Person";
		}
		else if (discriminator.equals("role")) {
			return "cn.hftoday.org.Role";
		}
		else if (discriminator.equals("company")) {
			return "cn.hftoday.org.Company";
		}
		else if (discriminator.equals("organization")) {
			return "cn.hftoday.org.Organization";
		}
		return null;
	}
}